package com.wjj.dao.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.Version;
import com.wjj.dao.constants.TableConstants;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

/**
 * @Description
 * @Author junjun Wang
 * @Date Create in 19:42 2023/12/7
 **/
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName(value = TableConstants.CLASS_TABLE)
@SuperBuilder
public class ClassPO {

	@TableId(value = TableConstants.CLASS_ID, type = IdType.AUTO)
	private Integer classId;

	@TableField(value = TableConstants.CLASS_NAME)
	private String className;

	@TableField(value = TableConstants.CREATE_TIME)
	private Date createTime;

	@TableField(value = TableConstants.UPDATE_TIME)
	private Date updateTime;

	@TableField(value = TableConstants.VERSION)
	@Version
	private Integer version;

	@TableLogic(value = TableConstants.DELETED)
	private Integer deleted;

}
